package com.lwq.designpattern.creationalPatterns.factoryPattern.factoryMethod;

/**
 * @author liwq
 * @description
 * @date 2021/11/26 17:01
 */
public class demo {
    public static void main(String[] arg) {
        // 小米工厂造小米
        AbstractFactory miFactory = new XiaoMiFactory();
        miFactory.makePhone();

        // 苹果工厂造苹果
        AbstractFactory appleFactory = new AppleFactory();
        appleFactory.makePhone();
    }
}
